﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YArchitech.Plumbing
{
	public partial class SystemHideDialog : System.Windows.Forms.Form
	{
		public SystemHideDialog()
		{
			this.InitializeComponent();
			new YJKProcessTools().ShowInTaskbarChange(this);
            //base.Icon = Resources.YArchitech;
		}

		private void SystemDialog_Load(object sender, EventArgs e)
		{
		}

		private void btnHide_Click(object sender, EventArgs e)
		{
			this.isShow = false;
			this.setCheck();
			base.DialogResult = DialogResult.OK;
			base.Close();
		}

		private void btnShow_Click(object sender, EventArgs e)
		{
			this.isShow = true;
			this.setCheck();
			base.DialogResult = DialogResult.OK;
			base.Close();
		}

		private void setCheck()
		{
			this.isSpinkLer = false;
			this.isSystem = true;
		}

		private void SystemDialog_KeyUp(object sender, KeyEventArgs e)
		{
		}

		protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
		{
			int num = 256;
			int num2 = 260;
			if ((msg.Msg == num | msg.Msg == num2) && keyData == Keys.Escape)
			{
				base.Close();
			}
			return false;
		}

		public bool isSystem;

		public bool isSpinkLer;

		public bool isShow;
	}
}
